<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>配送员配送运单详情</title>
</head>
<body> <div ng-app="ShowOrdersApp" ng-controller="ShowOrdersCtrl">
    <div class="row">
        <ui-container auto="true" url="report/mansalary/showorders?userCode=${logisticsViewReq.userCode}&month=${logisticsViewReq.month}" key="report-showorders-list-00">
            <ui-search-form>
            </ui-search-form>
            <ui-table dischecked="true">
            </ui-table>
            <table-page/>
        </ui-container>
    </div>
</div>
<script>
    angular.module('ShowOrdersApp',['ui.table']);
    angular.module('ShowOrdersApp').controller('ShowOrdersCtrl', function($scope){
        $scope._columns=[
            {name:'postmanNo',head:'配送员工工号'},
            {name:'postmanName',head:'配送员姓名'},
            {name:'waybillNum',head:'运单号'},
            {name:'businessCode',head:'订单号'},
            {name:'nameConsignee',head:'收件人姓名'},
            {name:'mobileConsignee',head:'收件人手机号码'},
            {name:'addressConsignee',head:'收件人地址'},
            {name:'direction',head:'配送类型',render(data,value){
                switch (value+""){
                    case "0" : "配送";
                    case "1" : "上门退";
                    case "2" : "上门换";
                    default :return "";
            }}},
            {name:'temperature',head:'运输温度等级',render(data,value){
                switch (value+""){
                    case "0":"常温";
                    case "1":"生鲜冷链";
                    default:return "";
                }
            }},
            {name:'expressScheduleType',head:'时效标',render(data,value){
                switch (value+""){
                    case "0":"未知";
                    case "1":"当日达";
                    case "2":"次晨达";
                    case "3":"三日达";
                    case "4":"工作日";
                    case "5":"节假日";
                    case "6":"夜间配";
                    case "7":"上午达";
                    case "8":"下午达";
                    default:return "";
                }
            }},
            {name:'packageSize',head:'包裹大小规格',render(data,value){
                switch (value+""){
                    case "0":"未知";
                    case "1":"小件";
                    case "2":"大件";
                    default: return "";
                }
            }},
            {name:'expensive',head:'是否是贵品',render(data,value){
                switch (value+""){
                    case "0":"非贵品";
                    case "1":"贵品";
                    default: return "";
                }
            }},
            {name:'supplierName',head:'供应商名称'},
            {name:'cod',head:'代收货款'},
            {name:'codBack',head:'代退货款'},
            {name:'orderAmount',head:'订单价格'},
            {name:'status',head:'配送状态',render(data,value){
                switch (value+""){
                    case "0":"配送中";
                    case "1":"成功";
                    case "2":"失败";
                    default:
                        return "未知";

                }
            }},
            {name:'signTime',head:'签收时间',render(data,value){
                return new Date(value).format();
            }},
        ];
    });
</script>
</body>
</html>
